package org.classg.edu.client;

import org.classg.edu.client.impl.OrderClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-order", fallback = OrderClientImpl.class)
public interface OrderClient {

    // 根据用户id和课程id查询订单信息
    @GetMapping("/orderservice/order/queryOrderByUserIdAndCourseId/{userId}/{courseId}")
    Boolean queryOrderByUserIdAndCourseId(@PathVariable("userId") String userId, @PathVariable("courseId") String courseId);


}
